/*------------------------------------
	
	Lucas Martínez Propiedades
	
	. website | backend | modules | terreno | actions | facilities | js
	
	..
	2012 © Kazuu
	www.kazuu.com.ar

------------------------------------*/
facilitiesTerreno = function()
{
	var j_form		= $("#terreno-facilities-form");
	var j_checkbox	= $("input:checkbox");

	for (i = 0; i < j_checkbox.length; i++) {
		if (!j_checkbox.eq(i).attr("checked")) {
			j_checkbox.eq(i).attr("checked","checked");
			j_checkbox.eq(i).val(0);
		} else {
			j_checkbox.eq(i).val(1);
		}
	}
	j_form.submit();
}